﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AccordingToAppCodeRecords.aspx.cs" Inherits="WXYW.AccordingToAppCodeRecords" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
关键字<asp:TextBox ID="keyWordTextBox" runat="server" Height="16px" onkeypress="enterTxtBox('searchLinkButton')"></asp:TextBox>
    <asp:LinkButton ID="searchLinkButton" runat="server" OnClick="searchLinkButton_Click">查询</asp:LinkButton>
    <asp:LinkButton ID="resetLinkButton" runat="server" OnClick="resetLinkButton_Click">清除</asp:LinkButton>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
<asp:GridView ID="originalGridView" runat="server" CssClass="tableList" 
        BorderWidth="1" BorderColor="#888888" AutoGenerateColumns="false" AllowPaging="true"
        PageSize="20" 
        OnPageIndexChanging="originalGridView_PageIndexChanging" Width="100%" 
        onrowdatabound="originalGridView_RowDataBound">
        <Columns>
            <asp:BoundField HeaderText="RMA 号" DataField="ApplicationCode" />
            <asp:TemplateField HeaderText="客户名称">
                <ItemTemplate>
                    <%#Eval("User.FullName")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="联系人">
                <ItemTemplate>
                    <%#Eval("User.ContactPerson")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="联系电话">
                <ItemTemplate>
                   <%#Eval("User.UserPhone")%>
                </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="数量">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.Count")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="完成时间">
                <ItemTemplate>
                   <%#Convert.ToDateTime(Eval("CompleteDateTime")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img src="image/operateicon/docview.gif" />
                    <asp:LinkButton ID="viewLinkButton" OnClick="viewLinkButton_click" CommandArgument='<%#Eval("ApplicationID") %>'
                        runat="server">查看</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>  
</asp:Content>
